﻿@model  Entity.Dto.ButtonOrButtonStyleDto
@{
    Layout = "~/Views/Shared/_Style.cshtml";
}
@*layer*@
<link href="~/js/lib/layui/dist/css/layui.css" rel="stylesheet" />
<script src="~/js/lib/jquery/jquery-3.2.1.js"></script>
<script src="~/js/lib/layui/dist/layui.js"></script>
<script src="~/js/content/button/editButton.js"></script>
<script src="~/js/content/tool.js"></script>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>编辑按钮表单</legend>
</fieldset>

<form class="layui-form" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">按钮名称</label>
        <div class="layui-input-block">
            <input type="text" name="ButtonName" lay-verify="yz" autocomplete="off" placeholder="请输入按钮名称" class="layui-input" value="@Model.ButtonName">
        </div>
        <br />
        <label class="layui-form-label">按钮Key</label>
        <div class="layui-input-block">
            <input type="text" name="ButtonKey" lay-verify="yz" autocomplete="off" placeholder="请输入按钮Key" class="layui-input" value="@Model.ButtonKey">
        </div>
        <br />
        <div class="layui-form-item">
            <label class="layui-form-label">按钮主题</label>
            <div class="layui-input-block">
                <select name="ButtonStyleId" lay-filter="aihao" id="Style">
                    @foreach (var item in Model.ButtonStyleList)
                    {
                        <option value="@item.ButtonStyleId">@item.ButtonStyleName</option>
                    }
                </select>
            </div>
        </div>
        <label class="layui-form-label">按钮排序</label>
        <div class="layui-input-block">
            <input type="text" name="OrderBy" autocomplete="off" placeholder="请输入按钮排序值" class="layui-input" value="@Model.OrderBy">
        </div>
    </div>
    <div class="layui-form-item" style="margin:0  0 0 40% ">
        <div class="layui-input-block">
            <br />
            <button class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
    <input id="ButtonId" type="hidden" value="@Model.ButtonId" />
</form>
<script type="text/javascript">
    $(document).ready(function () {
        $("#Style").val("@Model.ButtonStyleId");
    });

</script>